home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
jpl_c.zip
/
INDEX.C
< prev
next >
Wrap
Text File
|
1986-05-18
|
768b
|
24 lines
/* 1.1 01-08-86 (index.c)
************************************************************************
* Robert C. Tausworthe *
* Jet Propulsion Laboratory *
* Pasadena, CA 91009 1986 *
************************************************************************/
#include "defs.h"
#include "stdtyp.h"
/************************************************************************/
STRING
index(s, c) /* return pointer to char c in string s, if it
occurs, NULL otherwise. */
/*----------------------------------------------------------------------*/
STRING s;
{
int i;
while ((i = *s) AND c ISNT i)
s++;
return (*s ? s : NULL);
}